#include "stm32f1xx.h"

#define DWT_CTRL   (*(volatile uint32_t *)0xE0001000)
#define DWT_CYCCNT (*(volatile uint32_t *)0xE0001004)
#define CYCCNTENA  (1 << 0)

void DWT_Init(void);
void delay_us(uint32_t us);